package com.yuyue.springFramework.note08.entity;

public class House {
    private String name;
    private String addr;
    private Human human;

    //set、get、tostring方法
    @Override
    public String toString() {
        return "House{" +
                "name='" + name + '\'' +
                ", addr='" + addr + '\'' +
                ", human=" + human +
                '}';
    }

    public Human getHuman() {
        return human;
    }

    public void setHuman(Human human) {
        this.human = human;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }
}
